package com.itheima.job;

public class Test06 {
    public static void main(String[] args) {
        String[] al = {"1","2","3","4","5","6","7"};
        method(al);
        for (String s : al) {
            System.out.println(s);
        }
    }
    public static <E> void method(E[] e ){
        //接收一个任意引用类型的数组，并反转数组中的所有元素。
        for(int min = 0,max = e.length-1;min < max;min++,max--){
            E temp = e[min];
            e[min] = e[max];
            e[max] = temp;
        }

    }
}
